#/bin/sh

export dir="intraday"
\rm -f -r $dir
mkdir $dir

for file in `curl -stderr http://www.datawm.com/nastocks/intraday/ |egrep -o ">q.*txt" |sed 's/>//g'`
do
    curl -stderr "http://www.datawm.com/nastocks/intraday/$file" > ./$dir/$file
done

